-- GENERATED SPELL FOR [Irondeep Skullthumper] --


function spell0_11602(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(16172,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11602', 20253, 1)
end

function spell1_11602(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(14099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11602', 567, 1)
end

function Sorts_11602(pUnit, Event)
local choix_sorts_11602 = math.random(0, 1)
if choix_sorts_11602 == 0 then
pUnit:RegisterEvent('spell0_11602', 1, 1)
end
if choix_sorts_11602 == 1 then
pUnit:RegisterEvent('spell1_11602', 1, 1)
end
end

function mob11602_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11602', math.random(1500, 3000), 1)
end

function mob11602_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11602_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11602_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11602, 1, 'mob11602_Action')
RegisterUnitEvent(11602, 2, 'mob11602_Leave')
RegisterUnitEvent(11602, 3, 'mob11602_Kill')
RegisterUnitEvent(11602, 4, 'mob11602_Die')
